Go beginner tutorial
Understanding Structs in Go (Part 1): The Foundation of Data Modeling
In Go, you don’t have classes like you do in Java or Python. Instead, Go provides something more lightweight but equally powerful—structs. Structs let you define your own types that group together related data. If you're building real-world applications, you'll use structs a lot.